package hsh.xun;

import java.util.Scanner;

public class shhx {
    public static void main(String[] args){
        int password = 520;
        while (true){
            Scanner sc = new Scanner(System.in);
            System .out.println("请输入密码");
            int mypassword = sc.nextInt();
            if (mypassword == password ){
                System.out.println("进入系统");
                break;
            }
            else {
                System.out.println("密码错误，请重新输入");
            }

        }
    }
}
